package player;

import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JTextField;

import org.dyno.visual.swing.layouts.Constraints;
import org.dyno.visual.swing.layouts.GroupLayout;
import org.dyno.visual.swing.layouts.Leading;

//VS4E -- DO NOT REMOVE THIS LINE!
public class ChoosePlayer extends JFrame {

	private static final long serialVersionUID = 1L;
	private JLabel jLabel0;
	private JLabel jLabel1;
	private JLabel jLabel2;
	private JPanel jPanel0;
	private JLabel jLabel3;
	private JButton jButton0;
	private JLabel jLabel4;
	private JLabel jLabel5;
	private JLabel jLabel6;
	private JLabel jLabel7;
	private JLabel jLabel8;
	private JLabel jLabel9;
	private JLabel jLabel10;
	private JLabel jLabel11;
	private JRadioButton jRadioButton0;
	private JRadioButton jRadioButton1;
	private JRadioButton jRadioButton2;
	private JRadioButton jRadioButton3;
	private JRadioButton jRadioButton4;
	private JRadioButton jRadioButton5;
	private JRadioButton jRadioButton6;
	private JRadioButton jRadioButton7;
	private JTextField jTextField3;
	private JTextField jTextField2;
	private JTextField jTextField1;
	private JTextField jTextField0;
	private JTextField jTextField7;
	private JTextField jTextField4;
	private JTextField jTextField5;
	private JTextField jTextField6;
	private ButtonGroup buttonGroup1;
	private JLabel jLabel12;

	public ChoosePlayer() {
		initComponents();
	}

	private void initComponents() {
		setLayout(new GroupLayout());
		add(getJPanel0(), new Constraints(new Leading(23, 1016, 10, 10), new Leading(12, 522, 12, 12)));
		initButtonGroup1();
		setSize(1070, 543);
	}

	private JLabel getJLabel12() {
		if (jLabel12 == null) {
			jLabel12 = new JLabel();
			jLabel12.setText("PLAYER/S:");
			jLabel12.setBounds(211, 214, 70, 16);
		}
		return jLabel12;
	}

	private void initButtonGroup1() {
		buttonGroup1 = new ButtonGroup();
		buttonGroup1.add(getJRadioButton1());
		buttonGroup1.add(getJRadioButton0());
		buttonGroup1.add(getJRadioButton2());
		buttonGroup1.add(getJRadioButton3());
		buttonGroup1.add(getJRadioButton4());
		buttonGroup1.add(getJRadioButton5());
		buttonGroup1.add(getJRadioButton6());
		buttonGroup1.add(getJRadioButton7());
	}

	private JTextField getJTextField6() {
		if (jTextField6 == null) {
			jTextField6 = new JTextField();
			jTextField6.setText("P8");
			jTextField6.setBounds(213, 429, 118, 20);
		}
		return jTextField6;
	}

	private JTextField getJTextField5() {
		if (jTextField5 == null) {
			jTextField5 = new JTextField();
			jTextField5.setText("P7");
			jTextField5.setBounds(214, 397, 116, 20);
		}
		return jTextField5;
	}

	private JTextField getJTextField4() {
		if (jTextField4 == null) {
			jTextField4 = new JTextField();
			jTextField4.setText("P6");
			jTextField4.setBounds(214, 369, 115, 20);
		}
		return jTextField4;
	}

	private JTextField getJTextField7() {
		if (jTextField7 == null) {
			jTextField7 = new JTextField();
			jTextField7.setText("P5");
			jTextField7.setBounds(214, 342, 116, 20);
		}
		return jTextField7;
	}

	private JTextField getJTextField0() {
		if (jTextField0 == null) {
			jTextField0 = new JTextField();
			jTextField0.setText("P1");
			jTextField0.setBounds(211, 237, 121, 20);
		}
		return jTextField0;
	}

	private JTextField getJTextField1() {
		if (jTextField1 == null) {
			jTextField1 = new JTextField();
			jTextField1.setText("P2");
			jTextField1.setBounds(213, 263, 117, 18);
		}
		return jTextField1;
	}

	private JTextField getJTextField2() {
		if (jTextField2 == null) {
			jTextField2 = new JTextField();
			jTextField2.setText("P3");
			jTextField2.setBounds(212, 289, 119, 20);
		}
		return jTextField2;
	}

	private JTextField getJTextField3() {
		if (jTextField3 == null) {
			jTextField3 = new JTextField();
			jTextField3.setText("P4");
			jTextField3.setBounds(213, 316, 117, 20);
		}
		return jTextField3;
	}

	private JRadioButton getJRadioButton0() {
		if (jRadioButton0 == null) {
			jRadioButton0 = new JRadioButton();
			jRadioButton0.setText("SOLO");
			jRadioButton0.setBounds(31, 237, 104, 24);
			jRadioButton0.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					jRadioButton0ActionActionPerformed(event);
				}
			});
		}
		return jRadioButton0;
	}

	private JRadioButton getJRadioButton7() {
		if (jRadioButton7 == null) {
			jRadioButton7 = new JRadioButton();
			jRadioButton7.setText("Eight PLAYERS");
			jRadioButton7.setBounds(29, 393, 121, 24);
			jRadioButton7.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					jRadioButton7ActionActionPerformed(event);
				}
			});
		}
		return jRadioButton7;
	}

	private JRadioButton getJRadioButton6() {
		if (jRadioButton6 == null) {
			jRadioButton6 = new JRadioButton();
			jRadioButton6.setSelected(true);
			jRadioButton6.setText("Seven PLAYERS");
			jRadioButton6.setBounds(30, 371, 131, 24);
			jRadioButton6.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					jRadioButton6ActionActionPerformed(event);
				}
			});
		}
		return jRadioButton6;
	}

	private JRadioButton getJRadioButton5() {
		if (jRadioButton5 == null) {
			jRadioButton5 = new JRadioButton();
			jRadioButton5.setText("Six PLAYERS");
			jRadioButton5.setBounds(29, 348, 104, 24);
			jRadioButton5.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					jRadioButton5ActionActionPerformed(event);
				}
			});
		}
		return jRadioButton5;
	}

	private JRadioButton getJRadioButton4() {
		if (jRadioButton4 == null) {
			jRadioButton4 = new JRadioButton();
			jRadioButton4.setText("Five PLAYERS");
			jRadioButton4.setBounds(30, 326, 104, 24);
			jRadioButton4.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					jRadioButton4ActionActionPerformed(event);
				}
			});
		}
		return jRadioButton4;
	}

	private JRadioButton getJRadioButton3() {
		if (jRadioButton3 == null) {
			jRadioButton3 = new JRadioButton();
			jRadioButton3.setText("Four PLAYERS");
			jRadioButton3.setBounds(31, 306, 108, 23);
			jRadioButton3.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					jRadioButton3ActionActionPerformed(event);
				}
			});
		}
		return jRadioButton3;
	}

	private JRadioButton getJRadioButton2() {
		if (jRadioButton2 == null) {
			jRadioButton2 = new JRadioButton();
			jRadioButton2.setText("Three PLAYERS");
			jRadioButton2.setBounds(30, 282, 128, 24);
			jRadioButton2.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					jRadioButton2ActionActionPerformed(event);
				}
			});
		}
		return jRadioButton2;
	}

	private JRadioButton getJRadioButton1() {
		if (jRadioButton1 == null) {
			jRadioButton1 = new JRadioButton();
			jRadioButton1.setText("two PLAYERS");
			jRadioButton1.setBounds(31, 259, 113, 24);
			jRadioButton1.addActionListener(new ActionListener() {
	
				public void actionPerformed(ActionEvent event) {
					jRadioButton1ActionActionPerformed(event);
				}
			});
		}
		return jRadioButton1;
	}

	private JRadioButton getjRadioButton0() {
		if (jRadioButton0 == null) {
			jRadioButton0 = new JRadioButton();
			jRadioButton0.setSelected(true);
			jRadioButton0.setText("SOLO");
			jRadioButton0.setBounds(31, 237, 104, 24);
		}
		return jRadioButton0;
	}

	private JLabel getJLabel11() {
		if (jLabel11 == null) {
			jLabel11 = new JLabel();
			jLabel11.setFont(new Font("Dialog", Font.BOLD, 18));
			jLabel11.setText("ENJOY THE GAME!!");
			jLabel11.setBounds(640, 344, 219, 33);
		}
		return jLabel11;
	}

	private JLabel getJLabel1() {
		if (jLabel1 == null) {
			jLabel1 = new JLabel();
			jLabel1.setFont(new Font("Dialog", Font.BOLD, 48));
			jLabel1.setText("MONOFILIPOLY");
			jLabel1.setBounds(97, 102, 365, 62);
		}
		return jLabel1;
	}

	private JLabel getJLabel10() {
		if (jLabel10 == null) {
			jLabel10 = new JLabel();
			jLabel10.setText("all right reserve class SE 2010-2011");
			jLabel10.setBounds(642, 323, 225, 16);
		}
		return jLabel10;
	}

	private JLabel getJLabel9() {
		if (jLabel9 == null) {
			jLabel9 = new JLabel();
			jLabel9.setText("Jennybee Alday");
			jLabel9.setBounds(638, 253, 134, 16);
		}
		return jLabel9;
	}

	private JLabel getJLabel8() {
		if (jLabel8 == null) {
			jLabel8 = new JLabel();
			jLabel8.setText("Anna Gael Natorilla");
			jLabel8.setBounds(639, 234, 122, 16);
		}
		return jLabel8;
	}

	private JLabel getJLabel7() {
		if (jLabel7 == null) {
			jLabel7 = new JLabel();
			jLabel7.setText("Paul Abib Camano");
			jLabel7.setBounds(640, 215, 114, 16);
		}
		return jLabel7;
	}

	private JLabel getJLabel6() {
		if (jLabel6 == null) {
			jLabel6 = new JLabel();
			jLabel6.setFont(new Font("Dialog", Font.BOLD, 16));
			jLabel6.setText("Game Developers:");
			jLabel6.setBounds(638, 186, 154, 23);
		}
		return jLabel6;
	}

	private JLabel getJLabel5() {
		if (jLabel5 == null) {
			jLabel5 = new JLabel();
			jLabel5.setText("This is our Filipino version of the famous board game MONOPOLY");
			jLabel5.setBounds(636, 119, 374, 21);
		}
		return jLabel5;
	}

	private JLabel getJLabel4() {
		if (jLabel4 == null) {
			jLabel4 = new JLabel();
			jLabel4.setFont(new Font("Dialog", Font.BOLD, 16));
			jLabel4.setText("About the Game:");
			jLabel4.setBounds(638, 98, 327, 16);
		}
		return jLabel4;
	}

	private JButton getJButton0() {
		if (jButton0 == null) {
			jButton0 = new JButton();
			jButton0.setText("LETS PLAY!");
			jButton0.setBounds(880, 433, 108, 56);
		}
		return jButton0;
	}

	private JLabel getJLabel3() {
		if (jLabel3 == null) {
			jLabel3 = new JLabel();
			jLabel3.setText("Choose No. of Players:");
			jLabel3.setBounds(34, 211, 202, 31);
		}
		return jLabel3;
	}

	private JLabel getJLabel0() {
		if (jLabel0 == null) {
			jLabel0 = new JLabel();
			jLabel0.setFont(new Font("Dialog", Font.BOLD, 26));
			jLabel0.setText("WELCOME TO");
			jLabel0.setBounds(184, 69, 180, 34);
		}
		return jLabel0;
	}

	private JPanel getJPanel0() {
		if (jPanel0 == null) {
			jPanel0 = new JPanel();
			jPanel0.setLayout(null);
			jPanel0.add(getJLabel2());
			jPanel0.add(getJLabel1());
			jPanel0.add(getJLabel0());
			jPanel0.add(getJLabel4());
			jPanel0.add(getJLabel5());
			jPanel0.add(getJLabel6());
			jPanel0.add(getJLabel7());
			jPanel0.add(getJLabel8());
			jPanel0.add(getJLabel10());
			jPanel0.add(getJLabel11());
			jPanel0.add(getJLabel9());
			jPanel0.add(getJLabel3());
			jPanel0.add(getJRadioButton0());
			jPanel0.add(getJRadioButton2());
			jPanel0.add(getJRadioButton3());
			jPanel0.add(getJRadioButton4());
			jPanel0.add(getJRadioButton5());
			jPanel0.add(getJRadioButton6());
			jPanel0.add(getJRadioButton7());
			jPanel0.add(getJRadioButton1());
			jPanel0.add(getJTextField0());
			jPanel0.add(getJTextField4());
			jPanel0.add(getJTextField7());
			jPanel0.add(getJTextField5());
			jPanel0.add(getJTextField6());
			jPanel0.add(getJTextField2());
			jPanel0.add(getJTextField1());
			jPanel0.add(getJTextField3());
			jPanel0.add(getJLabel12());
			jPanel0.add(getJButton0());
		}
		return jPanel0;
	}

	private JLabel getJLabel2() {
		if (jLabel2 == null) {
			jLabel2 = new JLabel();
			jLabel2.setFont(new Font("Dialog", Font.BOLD, 22));
			jLabel2.setText("FILIPINO version of the game MONOPOLY");
			jLabel2.setBounds(58, 158, 493, 46);
		}
		return jLabel2;
	}

	

	private void jRadioButton0ActionActionPerformed(ActionEvent event) {
	
		jTextField0.setVisible(true);
		jTextField1.setVisible(false);
		jTextField2.setVisible(false);
		jTextField3.setVisible(false);
		jTextField4.setVisible(false);
		jTextField5.setVisible(false);
		jTextField6.setVisible(false);
		jTextField7.setVisible(false);
		
	}

	private void jRadioButton1ActionActionPerformed(ActionEvent event) {
		jTextField0.setVisible(true);
		jTextField1.setVisible(true);
		jTextField2.setVisible(false);
		jTextField3.setVisible(false);
		jTextField4.setVisible(false);
		jTextField5.setVisible(false);
		jTextField6.setVisible(false);
		jTextField7.setVisible(false);
		
	
	}

	private void jRadioButton2ActionActionPerformed(ActionEvent event) {
		jTextField0.setVisible(true);
		jTextField1.setVisible(true);
		jTextField2.setVisible(true);
		jTextField3.setVisible(false);
		jTextField4.setVisible(false);
		jTextField5.setVisible(false);
		jTextField6.setVisible(false);
		jTextField7.setVisible(false);
		
	
	}

	private void jRadioButton3ActionActionPerformed(ActionEvent event) {
		jTextField0.setVisible(true);
		jTextField1.setVisible(true);
		jTextField2.setVisible(true);
		jTextField3.setVisible(true);
		jTextField4.setVisible(false);
		jTextField5.setVisible(false);
		jTextField6.setVisible(false);
		jTextField7.setVisible(false);
		
	
	}

	private void jRadioButton4ActionActionPerformed(ActionEvent event) {
		jTextField0.setVisible(true);
		jTextField1.setVisible(true);
		jTextField2.setVisible(true);
		jTextField3.setVisible(true);
		jTextField4.setVisible(false);
		jTextField5.setVisible(false);
		jTextField6.setVisible(false);
		jTextField7.setVisible(true);
		
	
	}

	private void jRadioButton5ActionActionPerformed(ActionEvent event) {
		jTextField0.setVisible(true);
		jTextField1.setVisible(true);
		jTextField2.setVisible(true);
		jTextField3.setVisible(true);
		jTextField4.setVisible(true);
		jTextField5.setVisible(false);
		jTextField6.setVisible(false);
		jTextField7.setVisible(true);
	
	}

	private void jRadioButton6ActionActionPerformed(ActionEvent event) {
		jTextField0.setVisible(true);
		jTextField1.setVisible(true);
		jTextField2.setVisible(true);
		jTextField3.setVisible(true);
		jTextField4.setVisible(true);
		jTextField5.setVisible(true);
		jTextField6.setVisible(false);
		jTextField7.setVisible(true);
	
	}

	private void jRadioButton7ActionActionPerformed(ActionEvent event) {
		jTextField0.setVisible(true);
		jTextField1.setVisible(true);
		jTextField2.setVisible(true);
		jTextField3.setVisible(true);
		jTextField4.setVisible(true);
		jTextField5.setVisible(true);
		jTextField6.setVisible(true);
		jTextField7.setVisible(true);
	
	}

}
